from django.urls import path
from .views.base import Index
from .views.video import Videos, Score, CollectFun, AddMovie, CF, ShowRatedMovies
from .views.auth import Regist, Login, Logout, UpdateInfo, Update, ShowCollect, CancelUpdate
from .views.chat import Chat

urlpatterns = [
    # 前台首页
    path('', Index.as_view(), name='client_index'),
    path('videos', Videos.as_view(), name='client_video'),
    path('auth/regist', Regist.as_view(), name='client_regist'),
    path('auth/login', Login.as_view(), name='client_login'),
    path('auth/logout', Logout.as_view(), name='client_logout'),
    path('auth/updateInfo', UpdateInfo.as_view(), name='update_info'),
    path('video/update', Update.as_view(), name='update'),
    path('video/score', Score.as_view(), name='score'),
    path('video/collect', CollectFun.as_view(), name='collect'),
    path('auth/updatecollect', ShowCollect.as_view(), name='updatecollect'),
    path('auth/cancelupdate', CancelUpdate.as_view(), name='cancelupdate'),
    path('addmovie', AddMovie.as_view(), name='add_movie'),
    path('video/CF', CF.as_view(), name='CF'),
    path('chat', Chat.as_view(), name='chat'),
    path('showratedmovies', ShowRatedMovies.as_view(), name='showratedmovies')
]
